package com.service.quartz.mapper;

import com.service.quartz.dto.TaskDto;
import com.service.quartz.model.TaskModel;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TaskMapper {
    @Autowired
    private ModelMapper mapper;

    public TaskDto modelToDto(TaskModel taskModel) {
        return mapper.map(taskModel, TaskDto.class);
    }
}
